package com.xnyzc.lhy.mis.feign.statistics;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.feign.fallback.statistics.OrderTrajectoryServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "${feign.applicationName.statistics}", fallback = OrderTrajectoryServiceFallback.class)
public interface OrderTrajectoryService {

    /**
     * 订单详情预估轨迹
     * @param orderNo 订单号
     * @return
     */
    @GetMapping("/trajectory/getPredictedTrajectory")
    Rv getPredictedTrajectory(@RequestParam("orderNo") String orderNo);

    /**
     * 订单详情行驶轨迹
     * @param orderNo 订单号
     * @return
     */
    @GetMapping("/trajectory/getOrderTrajectory")
    Rv getOrderTrajectory(@RequestParam("orderNo") String orderNo);


}
